package com.qf.service;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public interface CourseService {

    public boolean isAdd(HttpServletRequest request);

    public boolean add(HttpServletRequest request, HttpServletResponse response) throws IOException;

    public void initModify(HttpServletRequest request, HttpServletResponse response);

    public boolean modify(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException;

    public void getCourses(HttpServletRequest request, HttpServletResponse response) throws IOException;

    public void delete(HttpServletRequest request, HttpServletResponse response) throws IOException;
    public void getCourse(HttpServletRequest request, HttpServletResponse response) throws IOException;

}
